{include file='header.html'}
            <link type="text/css" href="../../page/css/reset.css" rev="stylesheet" rel="stylesheet">
            <link type="text/css" href="../../page/css/23weishenpi.css" rev="stylesheet" rel="stylesheet">
        <link type="text/css" href="{$common_domain}/tools/datepicker/jquery.ui.theme.css" rel="stylesheet" />
        <link type="text/css" href="{$common_domain}/tools/datepicker/jquery.ui.datepicker.css" rel="stylesheet" />
        <link type="text/css" href="{$common_domain}/tools/datepicker/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
        <script type="text/javascript" src="{$common_domain}/tools/datepicker/jquery-1.7.2.js"></script>
        <script type="text/javascript" src="{$common_domain}/tools/datepicker/jquery.ui.core.js"></script>
        <script type="text/javascript" src="{$common_domain}/tools/datepicker/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="{$common_domain}/tools/datepicker/jquery.ui.datepicker.js"></script>
        <script type="text/javascript" src="{$common_domain}/tools/datepicker/DateTimePicker.js"></script>
        <script type="text/javascript">
        $(function () {
            $("#start_time").datetimepicker();
            $("#end_time").datetimepicker();
            $("#keywords").attr("placeholder","请输入姓名或工号");
        });
        </script>
            <div id="content">
                <i class="con_l">&nbsp;</i>
                <i class="con_r">&nbsp;</i>
                <div class="main">
                    <div class="blank"></div>
                    <div class="p p0">
                        <a class="zu w" href="/audit/">未审批</a>
                        <a class="zu w selected" href="/unaudit/">已审批</a>
                    </div>

                    <ul class="p p2">
                        <!-- 第一个li添加fir这个class，最后一个li添加last这个class-->
                        <form method="get" action="">
                        <li class="one">

                                <input value="{if $params['start_time'] neq null}{$params['start_time']}{/if}" type="text" readonly="readonly" value=""  class="jko notime" name="start_time" id="start_time"/>
                                至
                                <input value="{if $params['end_time'] neq null}{$params['end_time']}{/if}" type="text" readonly="readonly" value="" class="jko notime" name="end_time" id = "end_time"/>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <input value="{if $params['keywords'] neq null}{$params['keywords']}{/if}" type="text" id="keywords" name="keywords" value=""/>
                            <input class="btn" type="submit" value="搜索" />
                        </li>
                        </form>
                        <li class="s fir">

                            <i class="i0 y2">员工姓名</i>
                            <i class="i0 y3">工号</i>
                            <i class="i0 y4">部门</i>
                            <i class="i0 y5">申请类型</i>
                            <i class="i0 i5">原因</i>
                            <i class="i0 y6">天数</i>
                            <i class="i0 y7">时间</i>
                            <i class="i0 y9">批准状态</i>
                            <i class="i0 y8">操作</i>

                            <div class="clear">riqi</div>
                        </li>
                        {foreach from=$rows item=list}
                        <li class="s">
                            <i class="i0 y2">{$list.name}{if $list.is_second}(2){/if}</i>
                            <i class="i0 y3">{$list.code}</i>
                            <i class="i0 y4">{$list.department_name}</i>
                            <i class="i0 y5">{$list.type}</i>
                            <i class="i0 i5"><a title="{$list.leave_reason}">{$list.leave_reason}</a></i>
                            <i class="i0 y6">{if $list.type eq '公出'}{$list.leave_time}  (小时){else}{$list.leave_time}{/if}</i>
                            <i class="i0 i7">
                            {if $list.leave_reason eq '地铁故障' or $list.leave_reason eq '忘记带卡' or $list.leave_reason eq '忘记刷卡' or $list.leave_reason eq '其它'}
                            {if $list.day_record}
                            {$list.access_date} {if $list.day_record.status[0]!=5}{$list.day_record.start_work}{/if} {if $list.day_record.status[1]!=6} &nbsp;至&nbsp;{$list.access_date} {$list.day_record.end_work}{/if}
                            {else}
                            无打卡记录
                            {/if}

                            {else}
                            {$list.start_time}&nbsp;{if $list.end_time}至&nbsp;{$list.end_time}{/if}
                            {/if}
                            </i>

                            <i class="i0 y9">{if $list.status=='已驳回'}已驳回{elseif $list.status=='已批准'}已批准{/if}</i>
                            <!--<i class="i0 y8">{$list.leave_desc}</i>-->
                            <i class="i0 y8"><a class="zb" href="{$base_domain}/applydetail/?id={$list.id}">查看详情</a></i>

                            <div class="clear"></div>
                        </li>
                        {/foreach}
                    </ul>
                    <div class="p p3" style="text-align:center" align="center">
                        {include file='multipage.html'}
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>

